package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.BuyOneGetOneItem;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

import java.util.List;
import java.util.Map;

public interface BuyOneGetOneContractor {
    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void getData(Map<String,Object> request);

        interface CallBack extends BaseHttpListener{
            void onSuccess(BaseResponse<List<BuyOneGetOneItem>> response);
        }
    }

    interface Presenter{
        void getBuyOnGetOneData(String status);
    }

    interface View extends BaseView{
        void onGetDataSuccess(List<BuyOneGetOneItem> data);
    }

}
